package com.aaa.phone.controller.expensecalendarcontroller;

import com.aaa.entity.BackExpenseorder;
import com.aaa.phone.service.expensecalendarservice.ExpenseCalendarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Description: 用户消费记录业务
 * @Author: 陈阳
 * @CreateDate: 2018/12/20$ 23:08$
 */
@CrossOrigin
@Controller
@RequestMapping("/expenseCalendar")
public class ExpenseCalendar {

    @Autowired
    private ExpenseCalendarService service;
    /*
    * 获取用户消费记录
    * */
    @RequestMapping("/getExpenseCalendar")
    @ResponseBody
    public List<BackExpenseorder> getExpenseCalendar(String telephone){
        return service.getExpenseCalendar(telephone);
    }
}
